--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 00ffbc09febd3df2a548c9c60625140e09b15c9b
Parents : dca6cc2
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-11-08T01:20:31+01:00
Using multiprocessing start method fork on Linux to avoid issues with Python 3.14. Fixes #35.
Changes
Diff
diff --git a/LXMF/LXStamper.py b/LXMF/LXStamper.py
index 56e2500..39b541b 100644
--- a/LXMF/LXStamper.py
+++ b/LXMF/LXStamper.py
@@ -15,6 +15,8 @@ PN_VALIDATION_POOL_MIN_SIZE = 256
active_jobs = {}
+if RNS.vendor.platformutils.is_linux(): multiprocessing.set_start_method("fork")
+
def stamp_workblock(material, expand_rounds=WORKBLOCK_EXPAND_ROUNDS):
wb_st = time.time()
workblock = b""
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────